package gob.osinerg.emergencia.service;

import java.io.Serializable;
import java.sql.Connection;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface GenericService {
	public void delete(Object persistentInstance) throws Exception;
	public void deleteById(Class clazz, Serializable id) throws Exception;
	public Object findById(Class clazz, Serializable id) throws Exception;
	public List findByObject(Object object) throws Exception;
	public List getFindCriteria(Object object) throws Exception;
	public List getFindCriteria(Object object, String orderBy, String restringe)throws Exception;
	public List getFindCriteria(Object object, int maxResults)throws Exception;
	public void save(Object object) throws Exception;
	public void saveCollection(Collection collection) throws Exception;
	
	public Connection getConnection() throws Exception;
	public List executeSQLQuery(String namedQuery, Map params );

}
